<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>     
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
 <html>
 <head>
<script type="text/javascript">
function getmynew(op){
var all=$("#myspan").length;
$.getJSON('StrategycomServlet',{flag:"query", page:op,size:5,id:"${info.strategy_id}"},function(date){
if(all>0){
 
}else{
var str="<div id="mybox" class='com-box'>"+"<h2>评论（<span id='myspan' class='_comment_num' >"+1+"</span>）</h2><ul id='comments' data-page='1' data-id='0'>";
 $.each(date,function(i,info){
        str=str+" <li class='clearfix comment_item item_359559' data-id='359559' data-replied='0'>"
   +" <div class='img'><img src='"+info.strategycom_user.user_logo+"'></div>"
    +"<div class='info'>"
        +"<h3>"+info.strategycom_user.user_name+"<span>"+info.strategycom_user.user_status+"</span></h3>"
        +"<h4>"+info.strategycom_time+"</h4>"
        +"<div class='com-cont'>"+info.strategycom_content+"</div><div class='rep-del op_item_359559 hide'></div></div></li>"
});
   str=str+"<div align='center' class='m-pagination' data-type=''>"+
        "<span class='count'>共1页 /1条</span>"
    +"</div></ul></div>";
$("#myfirst").after(str);
}
});
};
</script>
<script  type="text/javascript">
function mycommon(){
	var content=$("#mycontent").val();
	if(content==""){
	lock();
	return;
	}
	if(content=="说点什么吧..."){
	lock();
	return;
	}
	if("${user.user_id}"!=null){
	var user='${user.user_id}';}
	$.get('StrategycomServlet?flag=add',{user:user,strategy:${info.strategy_id},content:content},function(date){	
	alert(date);
	if(date=="添加成功"){
	location.reload();
	getmynew(1);
	}
	});
};


</script>
<script type="text/javascript">
function unlock(){
$("#popup_container").css({"opacity": 0 , "z-index" : 0});
$("#_j_layer_0").css("display","none");
};

 function lock(){
$("#popup_container").css({"opacity": 1 , "z-index" : 1});
$("#_j_layer_0").css("display","block");
};
</script>
 <script src="js/jquery.min.js"></script>
<title>${info.strategy_title} - 蜂窝煤</title>
<meta name="keywords" content="攻略路线">
<meta name="renderer" content="webkit">
<link rel="canonical" href="11http://www.mafengwo.cn/gonglve/ziyouxing/78726.html">
<link href="CSS/css+base_css+jquery.suggest_css+plugins_css+plugins+jquery.jgrowl_css+other+popup_css+mfw-header.2015^YlVS^1527308432.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/salesapp.js" type="text/javascript" ></script>
<script src="js/js+Dropdown_js+pageletcommon+pageHeadUserInfoWWWNormal_js+jquery.tmpl_js+M+module+InputListener_js+M+module+SuggestionXHR_js+M+module+DropList_js+M+module+Suggestion_js+M+module+MesSearch" ></script>
<style type="text/css">._j_fix_block_fix_1{position:fixed;top:0px;bottom:0px}</style>
<style type="text/css">._j_fix_block_abs_2{position:absolute;top:130427px;height:759px}</style>
<script async="" src="js/BrowserState.js"></script>
<style type="text/css">._j_fix_block_abs_3{position:absolute;top:131193px;height:759px}</style>
<style type="text/css">._j_fix_block_abs_4{position:absolute;top:131242px;height:710px}</style>





</head>

<body style="position: relative;">
        
<div id="header" xmlns="http://www.w3.org/1999/html">
	<div class="mfw-header">
		<div class="header-wrap clearfix">
			<div class="head-logo">
				 <a  href="index.jsp"><img src="image/logohead.png"></a>
			</div>
			
			<ul class="head-nav" data-cs-t="headnav" id="_j_head_nav">
				<li class="head-nav-index" data-cs-p="index"><a
					href="http://localhost:8080/travel/index.jsp">首页</a></li>
				<li class="head-nav-place" data-cs-p="mdd"><a 
				    href="PlaceServlet?flag=place"
					title="目的地">目的地</a></li>
				<li class="head-nav-gonglve head-nav-active" data-cs-p="gonglve"><a href="guides.jsp"
					title="旅游攻略">旅游攻略</a></li>
				<li class="head-nav-gonglve " data-cs-p="gonglve"><a
					href="DiaryServlet?flag=alldiary" title="旅游游记">旅游游记</a></li>
				<li class="head-nav-hotel" data-cs-p="hotel"><a
					href="hotel.jsp" title="酒店">酒店</a></li>
					</ul>
					<div class=split>
					<div class="login-out">
					<span style="font-size: 20px; color: #C7254E;">欢迎</span>&nbsp;&nbsp;&nbsp;&nbsp;
		<!-- 未登录 -->
		<c:if test="${sessionScope.user==null}">
		<a id="_j_showlogin" title="登录蜂窝煤" href="login.jsp" rel="nofollow">登录</a>
		<span class="split">|</span>
		<a href="register.jsp" title="注册帐号" rel="nofollow">注册</a>
		</c:if>			
		<!-- 已登录 -->
		<c:if test="${sessionScope.user!=null}">
		<span><font size="4" color="orange"><a onclick="window.open('userinfo.jsp')">${sessionScope.user.user_name}</a></font></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="UserServlet?flag=loginout"><font size="3" color="orange">注销</font></a>
		</c:if>
		</div>
		<div class="shadow"></div>
	</div>
</div>
</div>
</div>


<link href="CSS/guide+css+preview_css+local+list_v3_guide+css+audioplayer^ZlI^1525428647.css" rel="stylesheet" type="text/css">

<div class="wrap clearfix">
        <div class="crumb">
        <a href="index.jsp">首页</a> &gt; <a href="https://www.mafengwo.cn/gonglve/ziyouxing/mdd_10156/">杭州</a>  &gt; <em>自由行攻略</em>
    </div>
                <div class="local-con clearfix">
        <div class="sideL">
            <div class="l-topic">
                <h1>${info.strategy_title}</h1>
                <div class="sub-tit">
     <span class="time" style="margin-left: 20px;"><em>阅读 42489</em></span>
                    <span class="time">旅游攻略<em> ${info.strategy_time}
                        </em>
                    </span>
                </div>
                
        <input id="myhi"  type="hidden" value="${counts}" 	>            
    <div class="user_list">
        <div class="clearfix">
            <div class="author">
                <a href="https://www.mafengwo.cn/u/55881461.html" target="_blank">
                    <img src="${info.strategy_user.user_logo}" alt="" width="90" height="90">
                </a>
            </div>
            <div class="info">
                <div class="in-t">
                    <a href="https://www.mafengwo.cn/u/55881461.html" target="_blank">
                        <span class="name">${info.strategy_user.user_name}</span>
                    </a>
                                            <span class="rz"><i></i>蜂窝煤攻略作者</span>
                                    </div>
                <p>我的介绍</p>
            </div>
            <div class="contact user-home">
                <a href="https://www.mafengwo.cn/u/55881461.html" target="_blank">
                    <i></i><p>TA的窝</p>
                </a>
            </div>
        </div>
    </div></div>
            <div class="_j_content">
		${info.strategy_content};
 
            
            <div class="copyRight m_t_20"><p>本文著作权归 @"${info.strategy_user.user_name}" 所有，任何形式转载请联系作者。©2018 蜂窝煤旅行</p></div>

            <div class="l-comment">
    <div id="myfirst" class="clearfix com-form">
        <div class="img"><img src="image/guides/20180611202835.png"></div>
        <div class="fm-tare user-log">
            <textarea id="mycontent"  class="_j_comment_content">说点什么吧...</textarea>
            <c:if test="${user!=null}">
             <button type="button" class="_j_save_comment"  onclick="mycommon()">评论</button>
             </c:if>
             <c:if test="${user==null}">
             <button type="button" class="gotoLogin" data-gtype="2">评论</button> <p style="display: block">您必须<a href="login.jsp" class="gotoLogin">登录</a>才可以评论</p> 
             </c:if>
                   </div>
    </div>
    
   
    <c:if test="${counts==0}"></c:if>
    <c:if test="${counts!=0}">
   
    <div id="mybox" class="com-box ">
        <h2>评论（<span id="myspan" class="_comment_num" >${counts}</span>）</h2>
        <ul id="comments" data-page="1" data-id="0">
        
         <c:forEach var="i" items="${scom}">
        <li class="clearfix comment_item item_359559" data-id="359559" data-replied="0">
    <div class="img"><img src="${i.strategycom_user.user_logo}"></div>
    <div class="info">
        <h3>${i.strategycom_user.user_name}<span>${i.strategycom_user.user_status}</span></h3>
        <h4>${i.strategycom_time}</h4>
        <div class="com-cont">${i.strategycom_content}</div>
<div class="rep-del op_item_359559 hide">
  </div>
</div></li>
</c:forEach>

   <div align="center" class="m-pagination" data-type="">
        <span class="count">共<fmt:formatNumber type="number"  maxFractionDigits="0" value="${(counts-counts%5)/5+1}"/>页 / ${counts} 条</span>
   <span class="pg-current">1</span>
   <a class="pg-next _j_page" href="javascript:getnew(<fmt:formatNumber type="number"  maxFractionDigits="0" value="${(counts-counts%5)/5+1}"/>);" rel="nofollow">末页</a>
  <a class="pg-next _j_page" href="javascript:getnew(2);" rel="nofollow">下一页</a>
    </div>

    </ul>
    </div>
    </c:if>
    </div>
        </div>                  
    </div></div>
            </div>
 <!-- 旅行管家-->
	

<script language="javascript" src="js/js+M+module++s(o)+_mobile+js+app+hls.min^Z1U^1526627474.js" type="text/javascript" ></script>

<script>
    //android app、pc chrome、pc firefox、ios app、ios safari支持，pc safari支持比较糟糕;
    var hlsPlugin = function() {
        //手机和pc的safari的不适用hls插件
        if ( Hls.isSupported() && !(navigator.vendor.indexOf('Apple') > -1 && navigator.userAgent.indexOf('Safari') > -1)  ) {
            //var oVideo = $("#video");
            var oVideo = $("._j_video");
            oVideo.each(function () {
                var sUrl = $(this).find("source").attr("src"); //播放地址
                var oHls = new Hls();
                var oCurrentVideo = $(this)[0];
                oHls.loadSource(sUrl);
                oHls.attachMedia(oCurrentVideo);
                oHls.on(Hls.Events.MANIFEST_PARSED,function() {
                    //oCurrentVideo.play();
                });
            })
        }
    };
    hlsPlugin();
</script><link href="CSS/mfw-footer.css" rel="stylesheet" type="text/css">

<div>
	 <jsp:include page="about-us.jsp"></jsp:include>
	</div>
<script language="javascript" type="text/javascript">
if (typeof M !== "undefined" && typeof M.loadResource === "function") {
M.loadResource("https://js.mafengwo.net/js/cv/js+Dropdown:js+pageletcommon+pageHeadUserInfoWWWNormal:js+jquery.tmpl:js+M+module+InputListener:js+M+module+SuggestionXHR:js+M+module+DropList:js+M+module+Suggestion:js+M+module+MesSearchEvent:js+SiteSearch:js+AHeader:js+jquery.mousewheel.min:js+M+module+ScrollBar:js+M+module+StickyAndStayBlock:guide+js+ASideSticky:js+module+app+Page:js+jquery.lazyload:js+M+module+TopTip:js+M+module+dialog+Layer:js+M+module+dialog+DialogBase:js+M+module+dialog+Dialog:js+M+module+dialog+alert:guide+js+ADetail:guide+js+ADirectory:js+localdeals+rest:js+sales+favorite:guide+js+AFavorite:guide+js+AComment:guide+js+audioplayer:js+M+module+PageAdmin:js+M+module+Storage:js+M+module+Cookie:js+M+module+ResourceKeeper:js+jquery.jgrowl.min:js+AMessage:js+M+module+FrequencyVerifyControl:js+M+module+FrequencySystemVerify:js+ALogin:js+M+module+ScrollObserver:js+M+module+QRCode:js+AToolbar:js+ACnzzGaLog:js+ARecruit:js+ALazyLoad^alVb^1525428646.js");
}
</script>
<div id="_j_layer_0" class="layer _j_layer" style="position: fixed; width: 100%; height: 100%; top: 0px; left: 0px; z-index: 10009; display: none;">                               
 <div class="layer_mask _j_mask" style="position: fixed; width: 100%; height: 100%; top: 0px; left: 0px; background: rgb(0, 0, 0); opacity: 0.7; z-index: -1;"></div>                               
  <div class="layer_content _j_content" style="position: fixed; width: 100%; height: 100%; top: 0px; left: 0px; z-index: 0; overflow: hidden;">
  <div id="popup_container" class="popup-box new-popbox pop_no_margin" style="position: absolute; opacity: 0; background: rgb(255, 255, 255); z-index: 0; width: 420px; left: 428.5px; top: 24px; ">
  <a class="close-btn _j_close"><i></i></a><div class="pop-ico" id="_j_alertpopicon"><i class="i1"></i></div>
  <div class="pop-ctn"><p class="hd _j_content">请输入内容</p><p class="bd _j_detail"></p></div>
  <div class="pop-btns"><a role="button" tabindex="0" class="popbtn popbtn-submit _j_close" onclick="unlock()">&nbsp;确定&nbsp;</a></div></div></div>                            
  </div>
</body></html>